package com.basker.pisces.service.exception;

public class ServiceErrorResultException extends RuntimeException implements IServiceErrorResult {

    private static final long serialVersionUID = 8022750706802506929L;

    private int status = -1;

    public ServiceErrorResultException(int status, String message) {
        super(message);
        this.status = status;
    }

    public ServiceErrorResultException(String message) {
        super(message);
    }

    @Override
    public int getStatus() {
        return status;
    }

}
